<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box {
            width: 500px;
            height: 500px;
        }
    </style>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <div id="box" :style="{background:`rgb(${r},${g},${b})`}"></div>
        红色<input type="range" name="" id="" min="0" max="255" v-model="r"><br>
        绿色<input type="range" name="" id="" min="0" max="255" v-model="g"><br>
        蓝色<input type="range" name="" id="" min="0" max="255" v-model="b">
        <p>{{ ({a:1,b:2})}}</p>
    </div>
    <script>
        const VM = new Vue({
            el: "#app",
            data: {
                r: 0,
                g: 0,
                b: 0,
                obj: { a: 1, b: 2 }
            }
        });
    </script>
</body>

</html>